<?php
/**
 * Created by PhpStorm.
 * User: yf
 * Date: 2019-01-01
 * Time: 20:06
 */

return [
    'SERVER_NAME' => "EasySwoole",
    'MAIN_SERVER' => [
        'LISTEN_ADDRESS' => '0.0.0.0',
        'PORT' => 9501,
        'SERVER_TYPE' => EASYSWOOLE_WEB_SERVER, //可选为 EASYSWOOLE_SERVER  EASYSWOOLE_WEB_SERVER EASYSWOOLE_WEB_SOCKET_SERVER,EASYSWOOLE_REDIS_SERVER
        'SOCK_TYPE' => SWOOLE_TCP,
        'RUN_MODEL' => SWOOLE_PROCESS,
        'SETTING' => [
            'worker_num' => 8,
            'reload_async' => true,
            'max_wait_time' => 3
        ],
        'TASK' => ['workerNum' => 4, 'maxRunningNum' => 128, 'timeout' => 15]
    ],
    'TEMP_DIR' => '/tmp/easySwooleDemo/Temp',
    'LOG_DIR' => '/tmp/easySwooleDemo/Log',
    /*################ MYSQL CONFIG ##################*/
    'MYSQL' => [
        'host' => '127.0.0.1',
        'port' => '3306',
        'user' => 'root',
        'timeout' => '5',
        'charset' => 'utf8mb4',
        'password' => '123456',
        'database' => 'bee_attendance',
        'POOL_MAX_NUM' => '20',
        'POOL_TIME_OUT' => '1',
    ],
    /*################ REDIS CONFIG ##################*/
    'REDIS' => [
        'host' => '127.0.0.1',
        'port' => '6379',
        'auth' => '',
        'db' => '15',
        'serialize' => \EasySwoole\Redis\Config\RedisConfig::SERIALIZE_NONE,
        'POOL_MAX_NUM' => '20',
        'POOL_MIN_NUM' => '5',
        'POOL_TIME_OUT' => '0.1',
    ],
];
